package com.victor.bookretail.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@Accessors(chain = true)
public class OrderInfoBo {
    @ApiModelProperty(value = "Order id")
    private Long id;

    @NotNull(message = "User id should not be empty")
    @ApiModelProperty(value = "User id", required = true)
    private Long userId;

    @NotNull(message = "Order amount should not be empty")
    @Min(0)
    @ApiModelProperty(value = "Order amount", required = true)
    private BigDecimal amount;

}
